<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <script type="text/javascript" src="/lib/haha/core/start.js"></script>
    <!-- 系统公告详情 -->
    <link rel="stylesheet" href="/CSS/scienceTechnologyDetail.css">
</head>

<body>
    <div id="header"></div>
    <!-- 内容 -->
    <div class="container">
        <div class="titlebox">
            <script id='systemNoticeDetailData' type="text/html">
                <p class="title">{{:#data['title']}}</p>
                <ul class="flex-end">
                    <li>发布用户:{{:#data['senderName']}}</li>
                    <li>发布时间:{{:#data['sendTime']}}</li>
                </ul>
                <!-- 文字内容 -->
                <div class="box">
                    {{:#data['text']}}
                </div>
            </script>
        </div>
    </div>
    <div id="footer"></div>
    <!-- 侧边固定按钮 -->
    <div id="sidebar"></div>
    <script type="text/javascript" src="/lib/layer-v3.1.1/layer/layer.js"></script>
    <script src="/lib/layui/layui.js"></script>
    <script type="text/javascript">
        shared.useLayout("showLine");
    </script>
    <script type="text/javascript">
        $(function () {
            shared.useLayout("showLine", '/systemAnnouncemen.html');
            var noticeId = JSON.parse(decodeURIComponent(base.getQueryParam('data')));
            getDetail(noticeId);

            function getDetail(noticeId) {
                shared.ajaxPost(config.systemNoticeInfo, {
                    id: noticeId
                }, function (res) {
                    console.log(res)
                    core.useTemplateAuto('systemNoticeDetailData', res, {});

                })
            }

        })
        function getImage(thisImg, path, parameter) {
            console.log("onerror");
            thisImg.src = config.server + "/" + path + "/" + parameter;
            thisImg.onerror = null;
        }

        function getFile(path, parameter) {
            var url = config.server + "/" + path + "/" + parameter;
            window.location.href = url;
        }


    </script>
</body>

</html>